package com.dmap.knowledge.vo;

import com.dmap.knowledge.bo.cloum.AppColumnKey;
import com.dmap.knowledge.cache.po.ArticleTotalityInfoPo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ArticleTotalityInfoVo implements Serializable {

    private List<AppColumnKey> keys = new ArrayList<>();     //关键子

    private List<ArticleDetailVo> todayRecommends = new ArrayList<>();  //今日推荐

    private List<AppArticleColumnInfoVo> columnList = new ArrayList<>();//按照cloumn列表

    public ArticleTotalityInfoVo(ArticleTotalityInfoPo articleTotalityInfoPo) {
        if (articleTotalityInfoPo.getKeys() != null) {
            this.keys = articleTotalityInfoPo.getKeys();
        }
        if (articleTotalityInfoPo.getTodayRecommends() != null) {
            this.todayRecommends = articleTotalityInfoPo.getTodayRecommends();
        }
        if (articleTotalityInfoPo.getColumnList() != null) {
            this.columnList = articleTotalityInfoPo.getColumnList();
        }
    }
    public ArticleTotalityInfoVo() {
    }

    public List<AppColumnKey> getKeys() {
        return keys;
    }

    public void setKeys(List<AppColumnKey> keys) {
        this.keys = keys;
    }

    public List<ArticleDetailVo> getTodayRecommends() {
        return todayRecommends;
    }

    public void setTodayRecommends(List<ArticleDetailVo> todayRecommends) {
        this.todayRecommends = todayRecommends;
    }

    public List<AppArticleColumnInfoVo> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<AppArticleColumnInfoVo> columnList) {
        this.columnList = columnList;
    }
}
